Component({
    properties: {
      startDate: {
        type: String,
        value: '',
      },
      endDate: {
        type: String,
        value: '',
      },
    },
    methods: {
      onStartDateChange(e) {
        const startDate = e.detail.value
        this.setData({ startDate })
        this.triggerEvent('dateChange', { startDate, endDate: this.data.endDate })
      },
      onEndDateChange(e) {
        const endDate = e.detail.value
        this.setData({ endDate })
        this.triggerEvent('dateChange', { startDate: this.data.startDate, endDate })
      },
    },
  })
  